package com.jprocms.module.cms.controller.admin.investigateitem.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 问卷选项 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class InvestigateItemBaseVO {

    @Schema(description = "站点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21693")
    @NotNull(message = "站点ID不能为空")
    private Long siteId;

    @Schema(description = "问卷ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12572")
    @NotNull(message = "问卷ID不能为空")
    private Long investigateId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "标题不能为空")
    private String title;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序不能为空")
    private Integer itemSort;

    @Schema(description = "是否多选", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否多选不能为空")
    private Boolean isMultiple;

    @Schema(description = "是否问答", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否问答不能为空")
    private Boolean isQa;

}
